/*
 * @Description: 
 * @Version: 1.0
 * @Author: truman
 * @Date: 2024-01-14 13:10:32
 * @LastEditors: truman
 * @LastEditTime: 2024-01-14 13:10:47
 */
/**
 * 获取地址栏参数
 */
export const getQueryString = (name) => {
    return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
} 